-- GENERATED SPELL FOR [Magma Elemental] --


function spell0_5855(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11970,pUnit)
pUnit:RegisterEvent('Sorts_5855', 2000, 1)
end

function Sorts_5855(pUnit, Event)
local choix_sorts_5855 = math.random(0, 0)
if choix_sorts_5855 == 0 then
pUnit:RegisterEvent('spell0_5855', 1, 1)
end
end

function mob5855_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5855', math.random(1500, 3000), 1)
end

function mob5855_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5855_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5855_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5855, 1, 'mob5855_Action')
RegisterUnitEvent(5855, 2, 'mob5855_Leave')
RegisterUnitEvent(5855, 3, 'mob5855_Kill')
RegisterUnitEvent(5855, 4, 'mob5855_Die')
